import Test from '../views/test.vue'
import Login from '../views/login.vue'
import Header from '../views/header.vue'
import Nav from '../views/nav.vue'
import Home from '../views/home.vue'
import ProjectView from '../views/bs/project/view.vue'
import Demoing from '../views/demo/demoing.vue'

// sys
import LoginLogView from '../views/sys/loginlog/view.vue'
import OperLogView from '../views/sys/operlog/view.vue'
import InstructionLogView from '../views/sys/instructionlog/view.vue'
import PtWXView from '../views/sys/pt/wxview.vue'
import PtLoginLogView from '../views/sys/pt/loginlogview.vue'
import PtOperLogView from '../views/sys/pt/operlogview.vue'
// sys end

// bs
import projectFormId from '../views/bs/project/form_id.vue'
import ParkView from '../views/bs/park/view.vue'
import PayView from '../views/bs/pay/view.vue'
import ParkForm from '../views/bs/park/form.vue'
import CmdLogView from '../views/bs/cmdlog/view.vue'
import ProjectFormZc from '../views/bs/project/form_zc.vue'

// bs end

var map = [

  { path: '/login', name: 'Login', component: Login },
  {
    path: '/', name: 'Header', redirect: { name: 'Home' }, component: Header, children: [
      {
        path: 'm', name: 'Nav', redirect: { name: 'Home' }, component: Nav, children: [
          { path: 'home', name: 'Home', component: Home },
          { path: 'demoing', name: 'Demoing', component: Demoing },
          // sys
          { path: 'operlog-view', name: 'OperLogView', component: OperLogView },
          { path: 'instructionlog-view', name: 'InstructionLogView', component: InstructionLogView },
          { path: 'ptwx-view', name: 'PtWXView', component: PtWXView },
          { path: 'ptloginlog-view', name: 'PtLoginLogView', component: PtLoginLogView },
          { path: 'ptoperlog-view', name: 'PtOperLogView', component: PtOperLogView },
          { path: 'loginlog-view', name: 'LoginLogView', component: LoginLogView },
          // sys end 
          // bs
          { path: 'project-form/:id', name: 'projectFormId', component: projectFormId },
          { path: 'project-view', name: 'ProjectView', component: ProjectView },
          { path: 'park-view', name: 'ParkView', component: ParkView },
          { path: 'pay-view', name: 'PayView', component: PayView },
          { path: 'project-zc-c', name: 'ProjectZcCreate', component: ProjectFormZc },
          { path: 'project-zc/:id', name: 'ProjectZc', component: ProjectFormZc },
          { path: 'park-form', name: 'ParkFormCreate', component: ParkForm }
          // bs end
        ]
      }
    ]
  },
  { path: '*', redirect: '/m/home' }
];

module.exports = map;